<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>缴费信息</title>
    
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <link rel="stylesheet" type="text/css" href="<%=path %>/css/f/default.css"/>
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/navs.css"/>
	<link rel="stylesheet" type="text/css" href="<%=path %>/css/f/assignment.css"/>
	<script src="js/jquery.min.js"></script>
	

  </head>
  
  <body>
	<div class="all">
		<jsp:include page="/nav.jsp"></jsp:include>
        <div class="rightall float-left">
        	<div  class="already">
				<div class="already-title">
					<div class="left">缴费信息</div>
				</div>
				<div style="margin-top:20px;">
					<form>
                		<span style=" margin-left:5%;"></span>
					专业：
						<select class="task" name="majorName">
							<c:forEach var="s" items="${className }">
								<option>${s.majorName }</option>
							</c:forEach>
						</select>
                		<span style=" margin-left:5%;"></span>
					班级：
						<select class="task" name="className">
							<c:forEach var="s" items="${className }">
								<option>${s.className }</option>
							</c:forEach>
						</select>
                		<span style=" margin-left:5%;"></span>
					学生：<input type="text" class="task" name="content">
                		<span style=" margin-left:5%;"></span>
                		<button class="btn-style task">查看</button>
					</form>
				</div>
				<div style="margin-top:20px;">
					<table>
						<tr class="tr-style-head">
							<td>缴费编号</td>
							<td>学生姓名</td>
							<td>缴费内容</td>
							<td>缴费时间</td>
							<td>缴费金额</td>
							<td>状态</td>
						</tr>
						<c:forEach var="s" items="${tuis }">
							<tr class="tr-style">
								<td>${s.tuitionId }</td>
								<td>${s.stuName }</td>
								<td>${s.tuitionContent }</td>
								<td><fmt:formatDate value="${s.createTime }" pattern="yyyy-MM-dd hh:mm"/> </td>
								<td>${s.tuitionSum }</td>
								<td>
									<c:if test="${s.tuitionState==1 }">正常</c:if>
									<c:if test="${s.tuitionState==2 }">冻结</c:if>
								</td>
							</tr>
						</c:forEach>
					</table>
		            <c:if test="${pages > 1 }">
	               		<div class="previous">
		               		<c:if test="${pageNo>1}">
		                    	<a href="counselor/tuition.do?pageNo=${pageNo-1}">上一页</a>
		                	</c:if>
		                   	<c:forEach var="p" begin="1" end="${pages }" step="1">
		                   		<c:if test="${p==pageNo }">
		                   			<span style="font-size:18px;color:#446ee6;">&nbsp;${p}&nbsp;</span>
		                   		</c:if>
		                   		<c:if test="${p!=pageNo }">
		                   			<a href="counselor/tuition.do?pageNo=${p }" >&nbsp;${p}&nbsp;</a>
		                   		</c:if>
		                   	</c:forEach>
		                    <c:if test="${pageNo<pages}">
		                    	<a href="counselor/tuition.do?pageNo=${pageNo+1}">下一页</a>
		                	</c:if>
	                   </div>
	                </c:if>
	                <div class="previous">
	                    <div class="float-right excel"><button name="" class="btn-style">导出文件</button></div>
	                </div>
				</div>
			</div>
        </div>
    </div>
  </body>
</html>
